package com.ss.test09;

import com.ss.test09.Student;

import java.util.Comparator;

/**
 * @Auther: 520ljs
 * @Date: 2022/3/17 - 03 - 17 - 15:34
 */
public class Test02 {
    //这是一个main方法，是程序的入口
    public static void main(String[] args) {
        //比较两个学生：
        Student s1 = new Student(10,160.5,"lili");
        Student s2 = new Student(13,165.5,"nana");
        //获取外部比较器：
        Comparator bj1 = new BiJiao01();
        System.out.println(bj1.compare(s1,s2));
        Comparator bj2 = new BiJiao02();
        System.out.println(bj2.compare(s1,s2));
        Comparator bj3 = new BiJiao03();
        System.out.println(bj3.compare(s1,s2));
    }
}
